<?php
/*------------------------------------------------------------------------------------------------------------------
 *
 *   引入自动加载机制
 *------------------------------------------------------------------------------------------------------------------
 */
require "vendor/autoload.php";

/*------------------------------------------------------------------------------------------------------------------
 *
 * 定义全局变量 路径
 *------------------------------------------------------------------------------------------------------------------
 */
define('ROOT_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
defined('APPLICATION_PATH') or define('APPLICATION_PATH', ROOT_PATH . 'application' . DIRECTORY_SEPARATOR);
defined('CONFIG_PATH') or define('CONFIG_PATH', APPLICATION_PATH . 'Config' . DIRECTORY_SEPARATOR);

/*------------------------------------------------------------------------------------------------------------------
 *
 * 引入配置文件
 *
 * ------------------------------------------------------------------------------------------------------------------
 */
$config = require_once CONFIG_PATH . "main.php";

/*------------------------------------------------------------------------------------------------------------------
 * 注册相关实例
 *------------------------------------------------------------------------------------------------------------------
 */
require ROOT_PATH . "bootstrap/app.php";

/*------------------------------------------------------------------------------------------------------------------
 * test
 *------------------------------------------------------------------------------------------------------------------
 */

\Mq\Faces\Job::getUserInfo();

//后期加上路由和 orm 相关操作